<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href='<?php echo base_url()?>'>
<link rel="stylesheet" type="text/css" href="public/common/css/common.css"/>
<link rel="stylesheet" type="text/css" href="public/admin/css/admin.css"/>
<script src="public/common/js/jquery.js"></script>
<script>
	$(function(){
			$('.main_nav li:first').addClass('cur');
			$('.main_nav li').hover(function(){
				if($(this).attr('class') != 'cur'){
					$(this).addClass('cur');
				}
			},function(){
				if($('.main_nav li[class="cur"]').length > 1){
						$(this).removeClass('cur');
				}
			}).click(function(){
				$('.main_nav li').removeClass('cur');
				$(this).addClass('cur');
			});	   
	});
</script>
</head>
<body>
	<div id="top">
        <div class="top_left left">
       		<img src='public/admin/images/logo.png' width='180px'/>
        </div>
        <div class="top_right left">
        	<div class="admin_info">
				管理员<label><?php echo $admin['admin_name']?></label>欢迎回来！
                <span>上次登陆时间:<label style="font-weight:normal"><?php echo date('Y-m-d',$admin['admin_last_login_time'])?></label></span>
                <span>上次登陆IP:<label style="font-weight:normal"><?php echo $admin['admin_last_login_ip']?></label></span>
                <span>本次登陆IP:<label style="font-weight:normal"><?php echo $admin['REMOTE_ADDR']?></label></span>
             </div>

             <div class="top_nav">
             	<ul class="main_nav left">
					<?php foreach($admin_config['nav'] as $key=>$value):?>
					<li><a href="<?php echo site_url('admin/admin/left/'.urlencode(base64_encode($key)))?>" target='left'><?php echo $key?></a></li>
					<?php endforeach;?>
                    </li>
                </ul>
             </div>
          	    <div class="out_nav">
                	 <ul>
                        <li><a href='<?php echo site_url("admin/cache/delete_cache")?>' target='_top'>清除缓存</a></li>
                        <li><a href='<?php echo site_url("admin/admin")?>' target='_top'>后台主页</a></li>
                        <li><a href='<?php echo site_url("site")?>' target='_blank'>前台主页</a></li>
                        <li><a href='<?php echo site_url("admin/login/login_out")?>' target='_top'>退出登录</a></li>
               		 </ul>
                </div>
            
        </div>
    </div>
</body>
</html>